@import url("reset.css");
@import url("google/inconsolata.css");

:root {
    --viewed_content: #e8f0f7;
}

a, a:hover, a:link, a:visited {
    cursor: pointer;
}

a,
a:visited,
a:link,
a.fa:hover,
a > i.fa:hover {
    color: var(--external-link-blue);
}
a,
a:visited,
a:link,
a.fas:hover,
a > i.fas:hover {
    color: var(--external-link-blue);
}
a,
a:visited,
a:link,
a.far:hover,
a > i.far:hover {
    color: var(--external-link-blue);
}

a:hover {
    color: var(--external-link-hover);
}
a:active {
    color: var(--external-link-active);
}

a.btn-success, a.btn-primary, a.btn-danger,
a.fa.btn-success, a.btn-primary, a.btn-danger,
a.btn-success > i.fa, a.btn-primary > i.fa, a.btn-danger > i.fa {

    color: var(--default-white);

}
a.btn-success, a.btn-primary, a.btn-danger,
a.fas.btn-success, a.btn-primary, a.btn-danger,
a.btn-success > i.fas, a.btn-primary > i.fas, a.btn-danger > i.fas {
    color: var(--default-white);
}
a.btn-success, a.btn-primary, a.btn-danger,
a.far.btn-success, a.btn-primary, a.btn-danger,
a.btn-success > i.far, a.btn-primary > i.far, a.btn-danger > i.far {
    color: #fff;
}

a.btn-default,
a.fa.btn-default,
a.fa,
a > i.fa {
    color: var(--text-black);
}

a.btn-default,
a.fas.btn-default,
a.fas,
a > i.fas {
    color: var(--text-black);
}

a.btn-default,
a.far.btn-default,
a.far,
a > i.far {
    color: var(--text-black);
}

a.btn, a.icon {
    text-decoration: none;
}

/****************************
 * INPUT STYLES
 ***************************/

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
    height: 30px;
    padding: 4px 6px;
    font-size: 14px;
    line-height: 20px;
    color: #555555;
    vertical-align: middle;
    border: 1px solid var(--standard-light-gray);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    width: auto;
}

input.readonly {
    background-color: var(--standard-pale-gray);
    cursor: not-allowed;
}

select {
    padding: 5px 35px 5px 10px;
    font-size: 16px;
    border: 1px solid var(--standard-light-gray);
    height: 34px;
    background: var(--default-white);
    background-size: 20px;
}

input[type="checkbox"]{
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--default-white);
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-black);
    transition: all .2s linear;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

input[type="checkbox"]:checked{
    background-color: var(--submitty-logo-blue);
}

/* this requires loading the FontAwesome CSS from the CDN before loading the server.css */
input[type="checkbox"]:checked:before {
    font-family: 'Font Awesome\ 5 Free';
    content: "\f00c";
    color: var(--default-white);
    font-size: 18px;
    font-weight: 900
}

.fa-question-circle{
  font-family: 'Font Awesome 5 Free';
  content: "\f059";
  color: var(--external-link-blue);
  font-weight: 300;
  display: inline-block;
}

.fa-question-circle.disabled,
.fa-question-circle[disabled],
.disabled>.fa-question-circle,
[disabled]>.fa-question-circle{
  font-family: 'Font Awesome 5 Free';
  color: var(--standard-light-gray);
  content: "\f059";
  font-weight: 300;
  display: inline-block;
}

select.disabled,
textarea.disabled,
input.disabled {
    background-color: var(--standard-light-gray);
}

/****************************
 * TABLE STYLES
 ***************************/
table a{
    text-decoration: none;
}

table tr.table-header {
    border-bottom: 1px solid black;
}

.table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.table td {
    padding: 5px;
    border-top: 1px solid var(--standard-light-gray);
}

.table tr {
    border-top: 1px solid #ddd;
}

.table-bordered {
    border: 1px solid var(--standard-medium-gray);
    border-collapse: separate;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.table-striped>tbody>tr:nth-child(even) {
    background: var(--standard-hover-light-gray);
}

.table-striped>tbody>tr:nth-child(odd) {
    background: var(--default-white);
}

.table>thead>tr {
    background: var(--standard-hover-light-gray);
}

tr.info, tr.info td, tr.info th {
    background-color: var(--table-info);
}

td>a.active-sort {
    text-decoration: underline;
    font-weight: bold;
}

.floating-thead,
.floating-header {
    position: fixed;
    top: 0;
    visibility: hidden;
}

.floating-thead > td,
.floating-header > td {
    display: table-cell;
    text-align: center;
}

.tr-vertically-centered > td {
    vertical-align: middle;
}

.table-text-left {
    text-align: center;
}

.table-text-left td {
    border: none;
}

.table-text-left > tbody > tr > td:nth-child(3),
.table-text-left > tbody > tr > td:nth-child(4),
.table-text-left > tbody > tr > td:nth-child(5),
.table-text-left > thead > tr > th:nth-child(3),
.table-text-left > thead > tr > th:nth-child(4),
.table-text-left > thead > tr > th:nth-child(5)  {
    text-align: left;
}

/* layout table classes  */
/* Layout tables do not have <caption>, <thead>, and <th> tags */

/* styling used in a <th> cell, except this is for a layout table */
.layout_th_cell {
    font-weight: bold;
    text-align: center;
    display: table-cell;
}

/**********************************************************/

.full_height {
    max-height: 100%;
}

.text-center {
    text-align: center;
}

.content {
    box-shadow: 0 2px 15px -5px var(--standard-light-gray);
    background-color: var(--default-white);
    border-radius: 3px;
    overflow: auto;
    margin: 10px;;
    padding: 30px;
    background-color: #fff;
    flex-grow: 1;
}

.content:last-child {
    flex-grow: 1;
}

.content.gradeable_message {
    background-color: var(--actionable-blue);
    color: var(--default-white);
}

.content.gradeable_message p:not(:last-child){
    padding-bottom: 20px;
}

.content.overridden_message {
    background-color: var(--important-post);
    color: black;
}

.content h1 {
    margin-bottom: 20px;
}

.content h2 {
    margin-bottom: 20px;
}

.subtitle {
    font-size: smaller;
    word-wrap: unset;
    white-space: normal;
}


.sub::after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.panel {
    background-color: var(--standard-pale-gray);
    margin: 1%;
    padding: 1%;
}

.spacer30 {
    height: 30px;
}

.clear {
    clear: both;
    border-bottom: 1px solid var(--standard-light-gray); /*same color, saw no need to make 2 vars*/
    padding-top: 20px;
}

#page-info {
    visibility: visible;
    display: none;
    position: absolute;
    top: 40px;
    left: 40px;
    z-index:1000;
    background: var(--default-white);
    border: 1px solid var(--text-black);
    width: 80%;
    overflow-y: scroll;
    padding: 5px;
}

.fa-green {
    color: green;
}
.fas-green {
    color: green;
}
.far-green {
    color: green;
}

.fa-red {
    color: red;
}
.fas-red {
    color: red;
}
.far-red {
    color: red;
}

.menu {
    font-size: 20px;
    display: flex;
    align-items: center;
}

.inner-message {
    margin: 0 auto 10px;
}

.message-close {
    float: right;
    margin-right: -20px;
    cursor: pointer;
}

.option {
    margin-bottom: 20px;
}

.option-title {
    font-weight: bold;
    font-size: 18px;
}

#config_search {
    padding-right: 20px;
}

#clear_search_button {
    margin-left: -20px;
    padding-right: 20px;
    color: red;
}

.option-alt {
    font-style: italic;
}

.option-input > textarea,
.option-input > input[type="text"] {
    width: 95%;
    resize: none;
}

.option-small-input > textarea,
.option-small-input > input[type="text"] {
    width: 99%;
    padding-right: 1px;
    padding-left: 1px;
}

.option-small-output > input[type="text"] {
    width: 99%;
    padding-right: 1px;
    padding-left: 1px;
    border:none;
    background: transparent;
}

.post-panel-btn {
    height: 20px;
    padding-right: 10px;
}

.label {
    font-weight: 700;
    margin-top: 5px;
    margin-right: 0;
    margin-left: 0;
}

.file-upload-table {
    border: none;
    border-collapse: collapse;
    text-align: left;
    margin: 5px auto;
}

.file-upload-table td {
    border: none;
    vertical-align: middle;
    padding: 1px 10px;
}

.file-upload-table .file-trash{
    text-align: right;
}

.file-upload-table tr:hover {
    background: #d1d1d1;
}

.green-message {
    font-style: italic;
    font-weight: bold;
    color: var(--standard-dark-green);
}

.blue-message {
    font-style: italic;
    font-weight: bold;
    color: var(--standard-vibrant-dark-blue);
}

.red-message {
    font-style: italic;
    font-weight: bold;
    color: var(--error-alert-dark-red);
}

.yellow-message {
    font-style: italic;
    font-weight: bold;
    color: var(--standard-vibrant-orange);
}

.black-message {
    font-style: italic;
    font-weight: bold;
    color: var(--text-black);
}

.sub-text {
    margin-left: 20px;
    margin-top: 10px;
}

.box {
    border-radius: 3px;
    border: 1px solid var(--standard-light-gray);
    width: 100%;
    margin-top: 3px;
    margin-bottom: 3px;
    position: relative;
    float: left;
    background: var(--default-white);
    box-shadow: 2px 2px 4px -3px var(--standard-light-gray);
    padding: 5px 5px 10px;
}

.active {
    background-color: var(--default-white);
    /*    color: #4a4a4a;*/
    border: 4px solid var(--submitty-logo-blue);
}

.viewed_post{
    background-color: var(--default-white);
}

/* TODO: MAKE THIS CASCADE */
.deleted {
    background-color: var(--deleted-discussion-post-grey);
}

.deleted.active {
    background-color: var(--deleted-discussion-post-grey);
}

.new_post {
    background-color: var(--viewed_content);
}

.important {
    /* THIS IS WHERE THE BACKGROUND COLOR FOR POSTS IS */
    border-style: solid;
    border-width: 4px;
    border-color: var(--important-post); /* gold */
}

.new_thread{
    background-color: var(--viewed_content);
}
.btn-default.post_button_color{
    background-color: inherit;
}

.box-title > h4 {
    margin-left: 20px;
}

.grade-results {
    display: flex;
    flex-direction: row;
}

.box > h4 {
    margin-bottom: 10px;
    margin-left: 10px;
    margin-top: 10px;
}
.box-block {
    vertical-align: top;
    margin-left: 10px;
    padding: 10px;
}

.box-block > h4 {
    margin-bottom: 10px;
}

.box-block > code,
.box-block > pre {
    padding: 10px;
    background-color: var(--standard-pale-gray);
    border: 1px solid var(--standard-light-gray);
    white-space: pre;
}

.half {
    float: left;
    width: 48%;
    margin-right: 10px;
}

.diff-element {
    float: left;
    margin-right: 20px;
}

.badge {
    float: left;
    display: inline-block;
    min-width: 70px;
    padding: 3px 7px;
    font-weight: bold;
    line-height: 1;
    color: var(--default-white);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    background-color: var(--standard-medium-gray);
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.no-badge {
    width: 70px;
    height: 10px;
    margin-right: 10px;
    margin-left: 10px;
    float: left;
}

.green-background {
    background-color: var(--standard-deep-dark-green);
}

.yellow-background {
    background-color: var(--standard-light-yellow-brown);
    color: var(--text-black);
}

.red-background {
    background-color: var(--error-alert-dark-red);
}

.blue-background {
    background-color: var(--standard-medium-blue);
}

.badge-container {
    padding: 6px 0;
    display: block;
}

.italics {
    font-style: italic;
    text-decoration: none;
}

.gradeable_list{
	width: 100%;
    padding: 0px 50px 50px;
	font-size: 18px;
	text-align: left !important;
}

.gradeable_list tr:nth-child(odd),
.gradeable_list tr:nth-child(even) {
/*    background-color: #E9EFEF*/
}

.gradeable_comment {
    word-break: break-word;
}

.gradeable_comment td {
    padding: 0 4px;
}

.gradeable_comment td.mark-score {
    text-align: right;
    white-space: nowrap;
}

#search_wrapper{
    border-radius: 3px;
    padding-bottom:10px;
    padding-right:10px;
    padding-left:10px;
}

#forum_wrapper{
    height: 70vh;
    margin-left:20px;
    margin-right:20px;

}

.fade {
  opacity: 0;
  -webkit-transition: opacity .15s linear;
       -o-transition: opacity .15s linear;
          transition: opacity .15s linear;
}
.fade.in {
  opacity: 1;
}
.collapse {
  display: none;
}
.collapse.in {
  display: block;
}
tr.collapse.in {
  display: table-row;
}
tbody.collapse.in {
  display: table-row-group;
}
.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition-timing-function: ease;
       -o-transition-timing-function: ease;
          transition-timing-function: ease;
  -webkit-transition-duration: .35s;
       -o-transition-duration: .35s;
          transition-duration: .35s;
  -webkit-transition-property: height, visibility;
       -o-transition-property: height, visibility;
          transition-property: height, visibility;
}
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px dashed;
  border-top: 4px solid \9;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.dropup,
.dropdown {
  position: relative;
}
.dropdown-toggle:focus {
  outline: 0;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  font-size: 14px;
  text-align: left;
  list-style: none;
  background-color: var(--default-white);
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  border: 1px solid var(--standard-light-gray);
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
          box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.dropdown-menu.pull-right {
  right: 0;
  left: auto;
}
.dropdown-menu .divider {
  height: 1px;
  margin: 9px 0;
  overflow: hidden;
  background-color: var(--standard-hover-light-gray);
}
.dropdown-menu > li > a {
  display: block;
  padding: 3px 20px;
  text-decoration: none;
  clear: both;
  font-weight: normal;
  line-height: 1.42857143;
  color: var(--standard-deep-dark-gray);
  white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  color: var(--standard-deep-dark-gray);
  text-decoration: none;
  background-color: var(--standard-pale-blue-gray);
}

.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
  color: var(--standard-medium-gray);
}
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
  text-decoration: none;
  cursor: not-allowed;
  background-color: transparent;
  background-image: none;
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}

.show > .dropdown-menu,
.open > .dropdown-menu {
  display: block;
}


.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: var(--standard-light-gray);
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: var(--default-white);
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

.show > a,
.open > a {
  outline: 0;
}
.dropdown-menu-right {
  right: 0;
  left: auto;
}
.dropdown-menu-left {
  right: auto;
  left: 0;
}
.dropdown-header {
  display: block;
  padding: 3px 20px;
  font-size: 12px;
  line-height: 1.42857143;
  color: var(--standard-medium-gray);
  white-space: nowrap;
}
.dropdown-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 990;
}

.btn-primary {
  color: var(--default-white);
  background-color: var(--actionable-blue);
  border-color: var(--hover-light-border-actionable-blue)
}
.btn-primary:focus,
.btn-primary.focus {
  color: var(--default-white);
  background-color: var(--focus-actionable-blue);
  border-color: var(--hover-dark-border-actionable-blue);
}
.btn-primary:hover {
  color: var(--default-white);
  background-color: var(--hover-actionable-blue);
  border-color: var(--hover-border-actionable-blue);
}
.btn-primary:active,
.btn-primary.active,
.show > .dropdown-toggle.btn-primary,
.open > .dropdown-toggle.btn-primary {
  color: var(--default-white);
  background-color: var(--hover-actionable-blue) ;
  border-color: var(--hover-border-actionable-blue);
}
.btn-primary:active:hover,
.btn-primary.active:hover,
.show > .dropdown-toggle.btn-primary:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.show > .dropdown-toggle.btn-primary:focus,
.open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.show > .dropdown-toggle.btn-primary.focus,
.open > .dropdown-toggle.btn-primary.focus {
  color: var(--default-white);
  background-color: var(--hover-border-actionable-blue);
  border-color: var(--hover-dark-border-actionable-blue);
}
.btn-primary:active,
.btn-primary.active,
.show > .dropdown-toggle.btn-primary,
.open > .dropdown-toggle.btn-primary {
  background-image: none;
}
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus {
  background-color: var(--actionable-blue);
  border-color: var(--hover-light-border-actionable-blue);
}
.btn-primary .badge {
  color: var(--actionable-blue);
  background-color: var(--default-white);
}

.panel-heading > .dropdown .dropdown-toggle {
  color: inherit;
}

table .colspan{
	padding: 10px;
	font-size: 22px;
	font-weight: 600;
}
table .hr {
    border-bottom: 1px solid var(--standard-light-gray);
}
table .bar{
	height:20px;
}
table .gradeable_title {
	padding-left: 50px;
}
table .gradeable_row td:first-child {
    padding-left: 15px;
}
table .gradeable_row td:last-child {
    padding-right: 15px;
}
table .has-url:hover {
	cursor: pointer;
	color: #3232FF;
}
table .student .gradeable_title {
	width: 45%;
}
table .student .date {
	width: 30%;
}
table .student .option {
	width: 25%;
}
table .ta .gradeable_title{
	width: 25%;
}
table .ta .date{
	width: 25%;
	text-align: center;
}
table .ta .option{
	width: 12.5%;
}
table .instructor .gradeable_title{
	width: 25%;
}
table .instructor .date{
	width: 15%;
}
table .instructor .option{
	width: 10%;
}
table .instructor .two-options{
	width: 15%;
}

div.full_height {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    max-height: 95vh;
    top: 10px;
}

.spacer {
    flex-grow: 1;
}

.nav-buttons a {
    margin-left: 5px;
}

.td-open {
    width: 10%;
}

.hover_glow {
    opacity: 0.08;
    filter: alpha(opacity=80);
    z-index: 1;
}

.hover_glow:hover {
    opacity: 0.8;
    filter: alpha(opacity=100);
}

.cat-buttons{
    margin-top: 5px;
}

.cat-buttons:hover {
    opacity: 0.8;
    filter: alpha(opacity=80);
}

#ui-category-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#ui-category-list li {
    border-style: solid;
    border-color: var(--standard-light-gray);
    border-width: thin;
    border-radius: 0.3em;
    margin: 0.3em 0.1em 0.3em 0.1em;
    padding: 0.2em;
}

#ui-category-list .handle {
    opacity: 0.8;
    filter: alpha(opacity=80);
}

#ui-category-list .handle:hover {
 cursor: move;
}

.rainbow {
    background: -moz-linear-gradient( left ,
    rgba(255, 0, 0, 1) 0%,
    rgba(255, 255, 0, 1) 15%,
    rgba(0, 255, 0, 1) 30%,
    rgba(0, 255, 255, 1) 50%,
    rgba(0, 0, 255, 1) 65%,
    rgba(255, 0, 255, 1) 80%,
    rgba(255, 0, 0, 1) 100%);
    background: #337ab7 -webkit-gradient(linear,  left top,  right bottom,
    color-stop(0%, rgba(255, 0, 0, 0.4)),
    color-stop(15%, rgba(255, 255, 0, 0.4)),
    color-stop(30%, rgba(0, 255, 0, 0.4)),
    color-stop(50%, rgba(0, 255, 155, 0.4)),
    color-stop(65%, rgba(0, 0, 255, 0.4)),
    color-stop(80%, rgba(255, 0, 255, 0.4)),
    color-stop(100%, rgba(255, 0, 0, 0.4)));
}

.thumbnail {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 5px;
    display: table-cell;
    border: 1px solid var(--standard-medium-gray);
}

.popup-form {
    z-index: 2000;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-box {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-window {
    background: var(--default-white);
    box-shadow: 0 6px 20px 2px #0000007f;
    border-radius: 4px;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-content: space-around;
    margin: 10px;
    height: calc(100% - 20px);
    width: calc(100vw - 20px);
    word-break: break-word;
}

.popup-form form {
    width: 100%;
    height: 100%;
}

.popup-form .form-title {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--standard-medium-gray);
    margin-bottom: 10px;
}

.popup-form .form-body {
    flex-grow: 1;
    overflow-y: auto;
}

.popup-form .form-buttons {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--standard-medium-gray);
}

.popup-form .form-button-container {
    text-align: right;
}

.popup-form .form-button-container .btn {
    box-sizing: unset;
    min-width: 4em;
}

.popup-form.decent div {
    width: initial;
    display: block;
    padding-right: initial;
}

.popup-form > div > input[type="text"] {
    width: 95%;
}

.popup-form .left-panel {
    width:50%;
    display: inline-block;
}

.popup-form .right-panel {
    width: calc(50% - 10px);
    display: inline-block;
    vertical-align: top;
}

#admin-team-history-left {
    width:28%;
    display: inline-block;
    margin-right: 10px;
}

#admin-team-history-right {
    width:62%;
    display: inline-block;
}

[name^="grader-warning-popup"] {
    background:var(--danger-red);
    box-shadow: 0 2px 15px -5px var(--standard-light-gray);
    border-radius: 3px;
    overflow: auto;
    margin: 10px;;
    padding: 30px;
    flex-grow: 1;
}

.fill-available {
    width: 100%;
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
}

/* Makes the cursor change to a hand on the checkpoints so that it is clear they can be clicked on */
.cell-grade {
    cursor: pointer;
}

.cell-grade {
    border-left: 1px solid var(--standard-medium-gray);
}

/* Makes the grade and time on checkpoint pages not visible at first */
.simple-grade-grader,
.simple-grade-date {
    display: none;
}


.tooltip {
    position: relative;
    display: inline-block;
}

.late-box {
    background:var(--danger-red);
    padding:3px;
    margin-top:3px;
    margin-bottom:3px;
    margin-left:5%;
    margin-right:5%;
    border-radius:4px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: var(--standard-dark-gray);
    color: var(--default-white);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    margin-left: -240px;
    margin-top: -35px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 40%;
    right: -4%;
    border: 5px solid transparent;
    border-left-color: var(--standard-dark-gray);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* from https://css-tricks.com/css3-progress-bars/ */
.meter {
    width: 100%;
    height: 10px;
    background: var(--standard-pale-gray);
    padding: 0px;
    border-radius: 4px;
}

.meter > span {
    display: block;
    height: 100%;
    background-color: var(--good-green);
    border-radius: 4px;
}

/*
The styles used in the admin gradeable page
*/
div.gradeable_display {
    text-align: left;
    font-size: 8px;
    padding-left: 5px;
}

textarea.comment_display {
    resize: none;
    width: 75%;
}

.rubric_layout_body {
    background: var(--standard-pale-gray);
}

/* <tr> tag styling to replace <thead> and <tfoot> in rubric tables*/
.rubric_layout_header,
.rubric_layout_footer {
    background: var(--standard-hover-light-gray);
}

/*
end of styles used in the admin gradeable page
*/

#settings-content {
    height: 400px;
    padding-top: 1em;
    overflow-y: auto;
}

#hotkeys-list {
    width: 100%;
    border-collapse: collapse;
}

#hotkeys-list tr {
    border: 1px solid var(--standard-light-gray);
    border-left: none;
    border-right: none;
}

#hotkeys-list tr:nth-child(even) {
    background-color: var(--standard-pale-gray);
}

#hotkeys-list td {
    padding: 4px;
}

.remap-button {
    width: 100%;
    text-align: center;
}

/* styles for the colors for the electronic grader details page */
/* color for no grader */
.grader-NULL {
    color: var(--default-white);
    text-shadow:
    -1px -1px 0 var(--text-black),
    1px -1px 0 var(--text-black),
    -1px 1px 0 var(--text-black),
    1px 1px 0 var(--text-black);
}

/* color for limited access graders who were verifed */
.grader-verified{
                                        /* yellow       green   */
    background: linear-gradient(to right, #ffcc33 50%, #33cc33 50%);
    background-clip: text;
    color: transparent;
    /* chrome & safari */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* color for student/peer grading */
.grader-4 {
    color: var(--standard-vibrant-purple) /* purple */
}

/* color for a limited access grader */
.grader-3 {
    color: var(--important-post)  /* yellow */
}

/* color for an instructor or full access grader */
.grader-2,
.grader-1 {
    color: var(--standard-vibrant-green) /* green */
}

/* color for double graded */
.grader-double {
    color: var(--standard-vibrant-dark-blue)  /* dark blue */
}

.grader-grade-inquiry {
    color: var(--standard-light-red);
}

.grader-invalid{
   color: var(--standard-light-red);
}

/* prevents line break in the graded questions column */
.td-graded-questions {
    white-space: nowrap;
}

#team-check-marks {
    white-space: nowrap;
    padding-right: 10px;
}
.viewed-green-check {
    color: var(--standard-vibrant-green);
    font-size: 1.5em;
}

.viewed-white-check {
    color: var(--default-white);
    font-size: 1.5em;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000;
}

.viewed-red-x {
    color: var(--badge-backgroud-red);
    font-size: 1.5em;
}

[name^="user_id_"]:valid {
    background-color: transparent;
}

[name^="user_id_"] {
    background-color: var(--alert-invalid-entry-pink);
}

/* color for nav page edit button for rebuild error on gradeable */
.edit-build-error {
    color: var(--badge-backgroud-red);
}

.required::-webkit-input-placeholder { color: var(--error-alert-dark-red); }
.required:-moz-placeholder { var(--error-alert-dark-red); }
.required::-moz-placeholder { var(--error-alert-dark-red); }
.required:-ms-input-placeholder { var(--error-alert-dark-red); }

#required_type{
    color: var(--error-alert-dark-red);
    display: inline;
}

.modal{
    display: none;
    position: fixed;
    z-index: 50;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content{
    text-align: center;
    background-color: var(--standard-pale-gray);
    margin: auto;
    padding: 30px;
    padding-top: 15px;
    border: 1px solid var(--standard-medium-gray);
    width: 420px;
    min-width: 400px;
    border-radius: 5px;
}

/* Site Wrapper View */

.wrapper-example {
    width: 400px;
    height: 240px;
    display: flex;
    flex-direction: column;
}
.wrapper-example .wrapper-center {
    display: flex;
    flex-grow: 2;
    flex-direction: row;
}
.wrapper-example .wrapper-top,
.wrapper-example .wrapper-left,
.wrapper-example .wrapper-body,
.wrapper-example .wrapper-right,
.wrapper-example .wrapper-bottom {
    flex-grow: 1;
    border: 1px solid var(--text-black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.wrapper-example .wrapper-body {
    flex-grow: 5;
}
.wrapper-top {
    background-color: var(--standard-light-pink);
}
.wrapper-left {
    background-color: var(--standard-light-yellow);
}
.wrapper-body {
    background-color: var(--default-white);
}
.wrapper-right {
    background-color: var(--standard-light-green);
}
.wrapper-bottom {
    background-color: var(--standard-light-blue);
}

.wrapper-upload td {
    padding: 4px;
    border: 1px solid var(--text-black);
}

.wrapper-upload .wrapper_layout_header {
    background-color: var(--standard-pale-gray);
}

.query-list {
    width: 2em;
}

.query-list .index {
    text-align: right;
}

.courses-table {
    width: 100%;
}

.courses-table .btn {
    margin-bottom: 3px;
}

.editor {
    width: 75%;
}

.scrollable-image{
    overflow: auto;
    width: 100%;
    max-height: 300px;
}

#details-legend > li{
    list-style: none;
    padding-left: 15px;
    font-size: 0.75em;
}

#confetti_canvas{
    position: fixed;
    display: none;
    z-index: 99999;
    top:0px;
    left: 0px;
}

.ui-autocomplete{
    max-height: 300px;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* Override the -15px that bootstrap-grid.css sets for these */
.row {
    margin-right: 0px;
    margin-left: 0px;
}

/* Data table captions that replace <h3> and <h5> for VPAT */
.caption_h5 {
    font-size: 0.83em;
    font-weight: bold;
    text-align: left;
    caption-side: top;
    border: 0;
}

/* Give trash cans inside submission boxes a blue outline when they have focus (for VPAT compliance) */
.custom-focus:focus {
    outline: var(--standard-focus-cornflowe-blue);
}

.invisible-btn{
    background-color: #00000000;
    border: 0px;
    padding: 0px;
}

#skip-nav:not(:focus) {
    clip: rect(1px,1px,1px,1px);
    overflow: hidden;
    position: absolute;
    padding: 0;
}

#skip-nav {
    box-shadow: 0 2px 15px -5px #888888;
    border-radius: 3px;
    /* TODO on mobile, different header height */
    margin: 90px 10px 10px; /* 80px for header */
    padding: 10px;
    background-color: #fff;
    text-align: center;
    width: 108px;
    border: 2px solid #2627ee;
    height: min-content;
    height: -moz-min-content;
    position: absolute;
    z-index: 999;
}

.float-right {
    float: right;
}

.warning {
    background: var(--alert-border-bronze);
    color: var(--standard-bronze);
}

.danger {
    background: var(--alert-background-danger-red);
    color: var(--alert-danger-red);
}

.black-btn, .black-btn > i {
    color: #000 !important;
    border-color: #000 !important;
    text-decoration: none;
}

.black-btn:hover, .black-btn:hover > i, .black-btn > i:hover {
    color: #405E90 !important;
    border-color: #405E90 !important;
}

.black-btn:active, .black-btn:active > i, .black-btn > i:active {
    color: var(--external-link-active) !important;
    border-color: var(--external-link-active) !important;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-col {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.flex-col-space > * {
    margin: 10px 0;
}

.flex-line {
    display: flex;
    align-items: center;
}

.shadow {
    box-shadow: 0 2px 15px -5px var(--standard-medium-gray);
    border-radius: 3px;
}

.content {
    margin: 10px;;
    padding: 30px;
    background-color: var(--default-white);
    flex-grow: 1;
}

.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.mobile-block {
    display: block !important;
}

.notification-badge {
    background-color: red;
    padding: 1px 5px;
    color: white;
    font-weight: bold;
    border-radius: 2px;
}

.flex-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.flex-wrapper .content {
    margin-bottom: 0;
}

.btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    max-width: 100%;
    width: 100%;
}

.btn-wrapper .btn {
    flex: 1 0 90%;
    margin: 5px 0 0 5px;
}

.wrap-reverse {
    flex-wrap: wrap-reverse;
}

ul.full-list, ol.full-list {
    display: block;
    margin: 1em 0;
    padding-left: 40px;
}

ul.bare-list, ol.bare-list {
    list-style: none;
    padding: 0;
}

.std-margin {
    margin: 1em 0;
}

header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

header > * {
    margin-bottom: 20px
}

.full-width {
    width: 100% !important;
    display: block;
}

.align-left {
    text-align: left !important;
}

.hide {
    display: none;
}

.bare-button {
    border: none;
    padding: 0;
    font-size: 1em;
    background: unset;
    color: unset;
}

@media (min-width: 541px) {
    .content {
    margin: 30px;
        max-height: none;
    }

    .mobile-block {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .btn-wrapper {
        width: max-content;
    }

    .btn-wrapper .btn {
        flex: 1 0 auto;
    }

    .popup-window {
        min-height: 300px;
        max-height: 80%;
        min-width: 680px;
        max-width: 80%;
        height: min-content;
        height: -moz-min-content;
        width: min-content;
        width: -moz-min-content;
    }
}

.pre-wrap{
    white-space: pre-wrap;
}

.pre_forum {
    font-family: inherit;
    max-width: 70vw;
}
